<?php
/*
*后台属性展示
*/
namespace app\admin\controller;
use think\Controller;
use think\Request;
use \think\Db;
use app\admin\lib\Tree;
use app\admin\lib\Detail;
class Message extends Base{
    //车辆列表
    public function index(){
      $request = Request::instance();//getid
      $getid = $request->route();
      $this->assign('ids',$getid);
      return $this->fetch();
    }
    //发送站内信息
    public function addmessage(){
      $db = Db::name('messages');
      $_POST['time'] = time();
      $ok = $db->insert($_POST);
      if ($ok) {
        $this->success('操作成功',"User/member_list");
      }else{
        $this->error('操作失败');
      }
    }



















}
